package Odhgos_Polhs;

public abstract class GenUser {
    //Attributes 
    private int ID;
    private String onoma;
    private String eponymo;
    private String email;
    private String thlefono;
    
    private Account account;  //Υλοποίηση σχέσης με Account
    
    //2 Constructors
    //1 με το λογαριασμό και 1 χωρίς
    public GenUser(int ID, String onoma, String eponymo, String Email, String thlefono) {
        this.ID = ID;
        this.onoma = onoma;
        this.eponymo = eponymo;
        this.email = Email;
        this.thlefono = thlefono;
    }

    public GenUser(int ID, String onoma, String eponymo, String Email, String thlefono, Account account) {
        this.ID = ID;
        this.onoma = onoma;
        this.eponymo = eponymo;
        this.email = Email;
        this.thlefono = thlefono;
        this.account = account;
    }

    //All Setters & Getters

    public int getID() {
        return ID;
    }

    public void setID(int ID) {
        this.ID = ID;
    }

    public Account getAccount() {
        return account;
    }

    public void setAccount(Account account) {
        this.account = account;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getEponymo() {
        return eponymo;
    }

    public void setEponymo(String eponymo) {
        this.eponymo = eponymo;
    }

    public String getOnoma() {
        return onoma;
    }

    public void setOnoma(String onoma) {
        this.onoma = onoma;
    }

    public String getThlefono() {
        return thlefono;
    }

    public void setThlefono(String thlefono) {
        this.thlefono = thlefono;
    }
    
    
    
}// End Class GenUser
